package com.shensi.adminCollect.domain.label;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.shensi.adminCollect.common.annotation.Excel;
import com.shensi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.sql.Time;
import java.util.Date;

/**
 * 定时修改标签信息，记录对象 timing_label
 *
 * @author qujia
 * @date 2022-11-16
 */
public class TimingLabel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 定时执行 */
    private Long timeId;

    /** 定时执行天数 */
    @Excel(name = "定时执行天数")
    private String days;

    /** 油企id */
    @Excel(name = "油企id")
    private Long enterpriseId;

    /** 所属立减活动的id */
    @Excel(name = "所属立减活动的id")
    private Long activityId;

    /** 修改标签的id */
    @Excel(name = "修改标签的id")
    private Long labelId;

    /** 删除标志 */
    private String delFlag;

    /** 删除标志 */
    private String[] daylist;
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /** 修改时间 */

    @Excel(name = "执行时间类型")
    private String timeType;

    /** 修改时间 */
    @Excel(name = "开始执行时间", width = 30, dateFormat = "HH-MM-ss")
    private Time beginDate;

    /** 修改时间 */

    @Excel(name = "结束执行时间", width = 30, dateFormat = "HH-MM-ss")
    private Time endDate;


    private String week;

    private String month;

    private String activityName;

    private String labelName;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUpdateDate;

    public Date getLastUpdateDate() {
        return lastUpdateDate;
    }

    public void setLastUpdateDate(Date lastUpdateDate) {
        this.lastUpdateDate = lastUpdateDate;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public String getLabelName() {
        return labelName;
    }

    public void setLabelName(String labelName) {
        this.labelName = labelName;
    }

    public String[] getDaylist() {
        return daylist;
    }

    public void setDaylist(String[] daylist) {
        this.daylist = daylist;
    }

    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public String getWeek() {
        return week;
    }

    public void setWeek(String week) {
        this.week = week;
    }

    public String getTimeType() {
        return timeType;
    }

    public void setTimeType(String timeType) {
        this.timeType = timeType;
    }

    public Time getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Time beginDate) {
        this.beginDate = beginDate;
    }

    public Time getEndDate() {
        return endDate;
    }

    public void setEndDate(Time endDate) {
        this.endDate = endDate;
    }

    public void setTimeId(Long timeId)
    {
        this.timeId = timeId;
    }

    public Long getTimeId()
    {
        return timeId;
    }
    public void setDays(String days)
    {
        this.days = days;
    }

    public String getDays()
    {
        return days;
    }
    public void setEnterpriseId(Long enterpriseId)
    {
        this.enterpriseId = enterpriseId;
    }

    public Long getEnterpriseId()
    {
        return enterpriseId;
    }
    public void setActivityId(Long activityId)
    {
        this.activityId = activityId;
    }

    public Long getActivityId()
    {
        return activityId;
    }
    public void setLabelId(Long labelId)
    {
        this.labelId = labelId;
    }

    public Long getLabelId()
    {
        return labelId;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate)
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate()
    {
        return updateDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("timeId", getTimeId())
                .append("days", getDays())
                .append("enterpriseId", getEnterpriseId())
                .append("activityId", getActivityId())
                .append("labelId", getLabelId())
                .append("delFlag", getDelFlag())
                .append("createDate", getCreateDate())
                .append("updateDate", getUpdateDate())
                .toString();
    }
}
